package org.garbagecan.hibernatestudy.events;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.garbagecan.hibernatestudy.util.HibernateUtil;

public class EventTest {
	private static Log log = LogFactory.getLog(EventTest.class);
	public static void main(String[] args) throws Exception {
		Event event = new Event();
		event.setTitle("abc");
		HibernateUtil.getInstance().add(event);

		log.info(HibernateUtil.getInstance().list(Event.class));
	}
}
